echo begin

call mvn  org.liquibase:liquibase-maven-plugin:3.6.3:dropAll -Dliquibase.driver=org.h2.Driver  -Dliquibase.changeLogFile=src/main/resources/liquibase/empty.xml  -Dliquibase.url="jdbc:h2:~/h2/ibzdbmirror/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';"  -DdefaultSchemaName=a9f92afbdc  -Dliquibase.username=a9f92afbdc

call mvn org.liquibase:liquibase-maven-plugin:3.6.3:update -Dliquibase.driver=org.h2.Driver   -Dliquibase.changeLogFile=src/main/resources/liquibase/generateChangeLog.xml  -Dliquibase.url="jdbc:h2:~/h2/ibzdbmirror/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';"  -DdefaultSchemaName=a9f92afbdc  -Dliquibase.username=a9f92afbdc

call mvn  org.liquibase:liquibase-maven-plugin:3.6.3:dropAll -Dliquibase.driver=org.h2.Driver  -Dliquibase.changeLogFile=src/main/resources/liquibase/empty.xml  -Dliquibase.url="jdbc:h2:~/h2/last_db/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';" -DdefaultSchemaName=a9f92afbdc  -Dliquibase.username=a9f92afbdc

call mvn  org.liquibase:liquibase-maven-plugin:3.6.3:update -Dliquibase.driver=org.h2.Driver   -Dliquibase.changeLogFile=src/main/resources/liquibase/master.xml  -Dliquibase.url="jdbc:h2:~/h2/last_db/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';" -DdefaultSchemaName=a9f92afbdc   -Dliquibase.username=a9f92afbdc

call mvn  org.liquibase:liquibase-maven-plugin:3.6.3:diff -Dliquibase.driver=org.h2.Driver  -Dliquibase.changeLogFile=src/main/resources/liquibase/empty.xml  -Dliquibase.diffChangeLogFile="src/main/resources/liquibase/changelog/%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%_diff.xml"  -Dliquibase.url="jdbc:h2:~/h2/last_db/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';"     -Dliquibase.username=a9f92afbdc   -Dliquibase.referenceUrl="jdbc:h2:~/h2/ibzdbmirror/a9f92afbdc;MODE=ORACLE;INIT=runscript from 'src/main/resources/liquibase/config/init_h2.sql';"    -Dliquibase.referenceUsername=a9f92afbdc    -Dliquibase.referenceDefaultSchemaName=a9f92afbdc     -Dliquibase.defaultSchemaName=a9f92afbdc  -Dliquibase.diffExcludeObjects="Index:.*,table:IBZFILE,IBZUSER"

echo done

pause


